package com.llc.mall.user.domain.user.factory;

import com.llc.mall.user.domain.user.entity.User;
import com.llc.mall.user.domain.user.objectvalue.UserProfile;

public class UserFactory {

    public static User factory(UserProfile userProfile){
        return User.builder()
                .nickName(userProfile.nickName())
                .password(userProfile.password())
                .pic(userProfile.pic())
                .build();
    }
}
